package Judge.JudgeMainFrame.JudgeMainFrameView;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.LayoutStyle;

import javax.swing.UIManager;
import javax.swing.border.BevelBorder;
import javax.swing.border.EtchedBorder;

public class JudgeMainFrameView 
{

	private JComboBox languageComboBox;
	private JComboBox problemComboBox;
	private JTextArea answerTextArea;
	private JTextArea questionTextArea;
	private JTextArea textArea;
	private JFrame frame;

	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) 
	{
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					JudgeMainFrameView window = new JudgeMainFrameView();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application
	 */
	public JudgeMainFrameView() 
	{
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		createContents();
		
		frame.setVisible(true);
	}

	/**
	 * Initialize the contents of the frame
	 */
	private void createContents() 
	{
		frame = new JFrame();
		frame.getContentPane().setLayout(null);
		frame.setTitle("Judge System");
		frame.setBounds(100, 100, 877, 566);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JButton exitButton = new JButton();
		exitButton.setText("Exit");
		exitButton.setBounds(651, 10, 99, 23);
		frame.getContentPane().add(exitButton);

		final JLabel judgeSystemLabel = new JLabel();
		judgeSystemLabel.setForeground(new Color(255, 0, 0));
		judgeSystemLabel.setFont(new Font("", Font.BOLD, 15));
		judgeSystemLabel.setText("Judge System");
		judgeSystemLabel.setBounds(325, 5, 133, 33);
		frame.getContentPane().add(judgeSystemLabel);

		final JLabel statusLabel = new JLabel();
		statusLabel.setForeground(new Color(255, 0, 0));
		statusLabel.setFont(new Font("", Font.PLAIN, 14));
		statusLabel.setText("Status");
		statusLabel.setBounds(10, 14, 60, 15);
		frame.getContentPane().add(statusLabel);

		final JLabel stoppedLabel = new JLabel();
		stoppedLabel.setForeground(new Color(255, 0, 0));
		stoppedLabel.setFont(new Font("", Font.PLAIN, 14));
		stoppedLabel.setText("Stopped");
		stoppedLabel.setBounds(63, 14, 60, 15);
		frame.getContentPane().add(stoppedLabel);
        
		
		MainPane mainPane;
		mainPane = new MainPane();
		mainPane.settingsPane.changePasswordButton.setText("ChangePassword");
		mainPane.settingsPane.changePasswordButton.setBounds(351, 21, 126, 23);
		mainPane.setBounds(0, 35, 869, 505);
		frame.getContentPane().add(mainPane);
	}
}
